package com.xnyy.lottery.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * @description: 应用配置
 * @auther: Administrator
 * @date: 2022/9/17 00:55
 */
@Data
@Component
@ConfigurationProperties(prefix = "app")
public class AppConfig {

    /**
     * 上传路径
     */
    private static String profile;
    /**
     * 打印机名称
     */
    private static String printerName;

    public static String getProfile() {
        return profile;
    }

    public static String getPrinterName() {
        return printerName;
    }

    public void setProfile(String profile) {
        AppConfig.profile = profile;
    }

    public void setPrinterName(String printerName) {
        AppConfig.printerName = printerName;
    }
}
